<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" 
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core">

<h:head>
	<title>Inscription Client</title>
</h:head>
<h:body>

	<h:form>
        login : <h:inputText value="#{clientMB.loggin}" />
		<br />
	    mot de passe : <h:inputText type="password" value="#{clientMB.mdp}" />
		<br />
	    nom : <h:inputText value="#{clientMB.nom}" />
		<br />
	    prenom : <h:inputText value="#{clientMB.prenom}" />
		<br />
	    Adresse de facturation : <br />
	    numero de rue : <h:inputText value="#{clientMB.numeroRue}" />
		<br />
	    Ville : <h:selectOneMenu value="clientMB.ville">
			<f:selectItems value="#{clientMB.listeVille}" var="vil"
				itemLabel="#{vil.nomVille}" itemValue="#{vil.id}" />
		</h:selectOneMenu>
		<br />
	    Rue : <h:selectOneMenu value="clientMB.rue">
			<f:selectItems value="#{clientMB.listeRue}" var="rue"
				itemLabel="#{rue.nomRue}" itemValue="#{rue.id}" />
		</h:selectOneMenu>
		<br />
		<h:commandButton value="Valider" action="#{clientMB.ajouterClient}" />
		<h:commandButton value="Annuler" action="#{clientMB.annulerSaisie}" />
	</h:form>

</h:body>

</html>